aboutsummaryrefslogtreecommitdiff
path: root/src/pages/create/[board].astro
blob: 3cbe1ab5fe30ce7d8f848bb3ad3a56baedeab110 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
---
import '../../styles/blackbox.css';

import Default from '../../layouts/Default.astro';
import Form from '../../components/Form.astro';

const { board } = Astro.params;
---

<Default>
  <h1>{board}</h1>

  <Form board={board} tid="">
    <form id="form" method="post" action="/create/thread" onsubmit="document.getElementById('submit-button').disabled = true">
      <textarea name="title" placeholder="Thread Name" style="height: 1.5rem; width: 350px;"></textarea> <br>
      <textarea name="content" placeholder="Thread Contents" style="height: 150px; width: 350px;"></textarea>
      <br> <input id="submit-button" type="submit" value="Create Thread" />
      <input id="image" type="file" accept=".png,.jpg,.gif,.bmp,.mp4" />
    </form>
  </Form>
</Default>

<style>
  :root {
    --wdt: 360px;
    --ml: 0px;
  }
</style>